import request from '@/utils/request'

// 查询即时通讯用户列表
export function listImUser(query) {
  return request({
    url: '/business/imUser/list',
    method: 'get',
    params: query
  })
}

// 查询即时通讯用户详细
export function getImUser(id) {
  return request({
    url: '/business/imUser/' + id,
    method: 'get'
  })
}

// 新增即时通讯用户
export function addImUser(data) {
  return request({
    url: '/business/imUser',
    method: 'post',
    data: data
  })
}

// 修改即时通讯用户
export function updateImUser(data) {
  return request({
    url: '/business/imUser',
    method: 'put',
    data: data
  })
}

// 删除即时通讯用户
export function delImUser(id) {
  return request({
    url: '/business/imUser/' + id,
    method: 'delete'
  })
}
